﻿@using Wei_Model
@model Wei_Model.LoginModel
@{
    ViewBag.Title = "登陆";
}
<style>
    .nolist ul li{
        list-style:none;
    }
</style>
        <div class="page-body animated slideInDown">
            <div class="logo">
                    @*<img alt="logo" src="images/logo-dark.png" />*@
                <h2 style="text-align: center;">My Way</h2>
                </div>
            <div class="box">
                <div class="panel mb-none">
                    <div class="panel-content bg-scale-0">
                        <form action="/Admin/Home/Login" method="post" id="form1">
                            <div class="form-group mt-md">
                                <span class="input-with-icon">
                                    @Html.TextBoxFor(m => m.Email, new { @class = "form-control", @placeholder = "Email" })
                                    <i class="fa fa-envelope"></i>
                                </span>
                                @Html.ValidationMessageFor(m => m.Email, "", new { @class = "color-danger" })
                            </div>
                            <div class="form-group">
                                <span class="input-with-icon">
                                    @Html.PasswordFor(m => m.Password, new { @class = "form-control", @placeholder = "密码" })
                                    <i class="fa fa-key"></i>
                                </span>
                                @Html.ValidationMessageFor(m => m.Password, "", new { @class = "color-danger" })
                            </div>
                            <div class="form-group">
                                <div class="checkbox-custom checkbox-primary">
                                    <input type="checkbox" id="remember-me" checked name="remember">
                                    <label for="remember-me">记住我</label>
                                </div>
                                @Html.ValidationSummary(true, "", new { @class = "color-danger nolist text-center" })
                            </div>
                            <div class="form-group">
                                <button type="submit" class="btn btn-primary btn-block">登陆</button>
                            </div>
                            <div class="form-group" style="margin-bottom:40px;">
                                <a style="float:left;" href="/Admin/Home/Register">注册</a>
                                <a style="float:right;" href="/Admin/Home/ForgotPassword">忘记密码？</a>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

<script>


    //等待
    function sleep(d) {
        for (var t = Date.now() ; Date.now() - t <= d;);
        
    }
</script>